/*
    1. Write a program in C to print the current time. 

    Expected Output :

    The Current time is : Thu Aug 03 13:38:58 2017
*/

#include <stdio.h>
#include <time.h>

int main(void)
{
    time_t rawtime;
    struct tm *info;
    time(&rawtime);
    info = localtime(&rawtime);
    printf("rawtime = %d\n", rawtime);
    printf("The Current time is : %s", asctime(info));

    return 0;
}